import Vue from 'vue'
import Router from 'vue-router'
const _import = require('./_import_' + process.env.NODE_ENV)
Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'index',
      meta: { title: '首页' },
      component: _import('index')
    },
    {
      path: '/register',
      name: 'register',
      meta: { title: '注册' },
      component: _import('register')
    }
  ]
})